package com.chixing.day05_oop.static_demo;

public class Student {
    public static String universityName="苏州大学";
    static {
        System.out.println("static");
    }
    {
        System.out.println("构造代码块");
    }
    public int stuNo;
    public String stuName;

    public Student() {
        System.out.println("constructor");
    }

    public void study(){
        this.stuNo = 10;
        this.stuName = "学生1";
        String universityName = Student.universityName;
    }

    public static void fun(){}
}
